package com.news.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class NearbyPlaces {

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	private String cityname;
	
	@Persistent
	private String nearbyPlace1;
	
	@Persistent
	private String nearbyPlace2;
	
	@Persistent
	private String nearbyPlace3;
	
	@Persistent
	private String nearbyPlace4;
	
	@Persistent
	private String nearbyPlace5;

	public NearbyPlaces(String cityname, String nearbyPlace1,
			String nearbyPlace2, String nearbyPlace3, String nearbyPlace4,
			String nearbyPlace5) {
		this.cityname = cityname;
		this.nearbyPlace1 = nearbyPlace1;
		this.nearbyPlace2 = nearbyPlace2;
		this.nearbyPlace3 = nearbyPlace3;
		this.nearbyPlace4 = nearbyPlace4;
		this.nearbyPlace5 = nearbyPlace5;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getCityname() {
		return cityname;
	}

	public void setCityname(String cityname) {
		this.cityname = cityname;
	}

	public String getNearbyPlace1() {
		return nearbyPlace1;
	}

	public void setNearbyPlace1(String nearbyPlace1) {
		this.nearbyPlace1 = nearbyPlace1;
	}

	public String getNearbyPlace2() {
		return nearbyPlace2;
	}

	public void setNearbyPlace2(String nearbyPlace2) {
		this.nearbyPlace2 = nearbyPlace2;
	}

	public String getNearbyPlace3() {
		return nearbyPlace3;
	}

	public void setNearbyPlace3(String nearbyPlace3) {
		this.nearbyPlace3 = nearbyPlace3;
	}

	public String getNearbyPlace4() {
		return nearbyPlace4;
	}

	public void setNearbyPlace4(String nearbyPlace4) {
		this.nearbyPlace4 = nearbyPlace4;
	}

	public String getNearbyPlace5() {
		return nearbyPlace5;
	}

	public void setNearbyPlace5(String nearbyPlace5) {
		this.nearbyPlace5 = nearbyPlace5;
	}
	
	
	
	
}
